﻿@{
    ViewBag.Title = "Roller";
    Layout = "~/Views/Shared/_Layout.cshtml";
    
    string uname = ViewBag.username;
}

<h2>@ViewBag.username için rolleri ayarlayın</h2>

@using( Html.BeginForm( "RolAyarla" , "Kullanici" , FormMethod.Get ) ) {   
    <p>

        @Html.Hidden( "username" , uname )
        @Html.DropDownList( "rol" ,  ViewBag.roller as SelectList )
        @Html.CheckBox("sil",false)
        Sil ?
        <br/>
        <input type="submit" value="Ayarla" />
        
    </p>     
}
